import request from "../utils/requset";
const url = "https://m.maizuo.com/gateway"

export function getFilmList(data) {
  return request({
    url,
    data,
    header: {
      "X-Host": "mall.film-ticket.film.list",
    },
  })
}

export function getFilmDetail(data) {
  return request({
    url,
    data,
    header: {
      "X-Host": "mall.film-ticket.film.info",
    },
  })
}

export function getCinemaList(data) {
  return request({
    url,
    data,
    header: {
      "X-Host": "mall.film-ticket.cinema.list",
    },
  })
}

export function getcinemTop(data) {
  return request({
    url,
    data,
    header: {
      "X-Host": "mall.film-ticket.cinema.info",
    },
  })
}

export function getcinemMiddle(data) {
  return request({
    url,
    data,
    header: {
      "X-Host": "mall.film-ticket.film.cinema-show-film",
    },
  })
}

export function getcinemBottom(data) {
  return request({
    url,
    data,
    header: {
      "X-Host": "mall.film-ticket.schedule.list",
    },
  })
}